﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Windows.Forms;
using System.Net;
using Business;

namespace GogTasks
{
    static class Program
    {

        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [MTAThread]
        static void Main(string[] argv)
        {
            ParseArgs(argv);
            System.Net.ServicePointManager.Expect100Continue = false;
//            Application.Run(new Main());
            Application.Run(new TaskForm());
        }

        private static void ParseArgs(string[] argv)
        {
            foreach (string arg in argv)
            {
                if (arg.ToUpper() == "/BG")
                {
                    MobileContext.StartInBackground = true;
                }
            }
        }
    }
}